﻿using UnityEngine;
using System.Collections;

public class MeStretchObject : UIViewAuto
{
		// Use this for initialization
		void Awake ()
		{
				Vector3 localScale = transform.localScale;
				contentSize = new Vector2 (localScale.x, localScale.y);
		}
	
		public override bool setAutoHeight (float autoHeight)
		{
				Vector3 localScale = transform.localScale;
				localScale.y = autoHeight;
				transform.localScale = localScale;
				return base.setAutoHeight (autoHeight);
		}
}
